#ifndef __baker_Callback_h__
#define __baker_Callback_h__

#include <sigc++/sigc++.h>

namespace baker
{
    // import the sigc namespace
    namespace cb = sigc;

    /** A small uitl for sigc::singal
    */
    template < typename T >
    struct Callback
    {
        template < typename F >
        inline Callback & connect( const F & f )
        {
            signal.connect( f );
            return * this;
        }

        T signal;
    };
}

#endif  // __baker_Callback_h__
